import request from '@/utils/request'

export default {
    //学期列表 条件查询带分页
    getListPage(page,size,params){
        return request({
            url: `/cmsservice/exams/pageExams/${page}/${size}`,
            method: 'post', 
            params
          })
    },
    //根据id删除学期
    removeById(id) {
        return request({
        url: `/cmsservice/exams/removeExams/${id}`,
        method: 'post'
         })
    },
    //添加学期
    addInfo(data){
        return request({
            url: `/cmsservice/exams/addExams`,
            method: 'post',
            data
        })
    },
    //修改学期
    updateInfo(data){
        return request({
            url: `/cmsservice/exams/updateExams`,
            method: 'post',
            data          
        }) 
    },
    //id查询数据回显
    getInfoById(id){
        return request({
            url: `/cmsservice/exams/getExams/${id}`,
            method: 'get'          
        })
    },
    // 获取所有考试信息
    findAllExams() {
        return request({
            url: `/cmsservice/exams/findAllExams`,
            method: 'get'          
        })
    }
}